home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: walter briscoe <walter@wbriscoe.demon.co.uk>
- Newsgroups: comp.lang.c,comp.lang.c.moderated,hp.unix,comp.sys.hp.apps,comp.sys.hp.hpux
- Subject: Re: C coding problem
- Date: 16 Mar 1996 10:22:27 -0600
- Organization: Digital Solutions
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4ieps3$agq@solutions.solon.com>
- References: <4ianbf$h86@solutions.solon.com>
- Reply-To: walter@wbriscoe.demon.co.uk
- NNTP-Posting-Host: solutions.solon.com
- X-NNTP-Posting-Host: wbriscoe.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.30
- X-Mail2News-Path: wbriscoe.demon.co.uk
-
- In article <4ianbf$h86@solutions.solon.com>
- proctor@corp.hp.com "Stephen Proctor" writes:
-
- > Greetings,
- >
- > I am trying to write a *simple* C program and am running into the following
- > warning problem shown below. Why do I get this warning?
- >
- > It seems to have an effect on the logic of the program when executed.
-
- [snip]
-
- > 1.) The following is the compilation line and the resulting warning message,
- >
- > % c89 shell.c -o shell
- > cc: "shell.c", line 98: warning 608: Illegal integer-pointer
- > combination in assignment.
-
- [snip]
-
- > main(int argc, char *argv[])
- > {
- > int ii;
- > int option_val = 0;
- > /* skip lines */
- > for (ii=1; ii<argc; ii++) {
- > /* skip lines */
- > /* The next line is the offending line */
- > if (*argv[ii] == '-') option_val = read_options;
- > /* skip lines */
- > return 0; /* Program executed successfully */
- > }
- >
-
- Your extract neither balances braces nor declares read_options.
-
- My guess is that you have hidden something like `int *read_options;`
-
- That would account for your error message.
-
- I would expact that scenario to "have an effect on the logic of the
- program when executed".
- --
- walter briscoe
-